var MatchSearch = {
	
	//run the 'find' API call and store the result for later
	find: function() {
		API.gamesList(function(response) {
			MatchSearch._callback(response)
		})
	},
	
	_callback: function(response) {
		console.log(response)
		//save the list for later
		this._response = JSON.parse(response)
		
		//display the list
		Controllers.FindMatchPage.createGamesList()
	},
	
	//get the list of games last retrieved by the API
	getList: function() {
		if (typeof this._response !== 'object') {
			return false
		} else {
			return this._response
		}
	}
	
}